<html>
<head><meta charset="utf-8"><title>Check a file exists in a UI test? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Check.20a.20file.20exists.20in.20a.20UI.20test.3F.html">Check a file exists in a UI test?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="231832381"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Check%20a%20file%20exists%20in%20a%20UI%20test%3F/near/231832381" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Check.20a.20file.20exists.20in.20a.20UI.20test.3F.html#231832381">(Mar 25 2021 at 16:26)</a>:</h4>
<p>Is there a way to check that a test generates a given file? I want it to be a UI test so I can use revisions, but I can make it run-make if that's not possible.</p>



<a name="231836836"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Check%20a%20file%20exists%20in%20a%20UI%20test%3F/near/231836836" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Check.20a.20file.20exists.20in.20a.20UI.20test.3F.html#231836836">(Mar 25 2021 at 16:53)</a>:</h4>
<p>Run make is probably necessary</p>



<a name="231836900"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Check%20a%20file%20exists%20in%20a%20UI%20test%3F/near/231836900" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Check.20a.20file.20exists.20in.20a.20UI.20test.3F.html#231836900">(Mar 25 2021 at 16:53)</a>:</h4>
<p>I'm wondering what exactly you're trying to accomplish though, it's possible a run pass test could do it</p>



<a name="231837746"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Check%20a%20file%20exists%20in%20a%20UI%20test%3F/near/231837746" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Check.20a.20file.20exists.20in.20a.20UI.20test.3F.html#231837746">(Mar 25 2021 at 16:58)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116122">simulacrum</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/Check.20a.20file.20exists.20in.20a.20UI.20test.3F/near/231836900">said</a>:</p>
<blockquote>
<p>I'm wondering what exactly you're trying to accomplish though, it's possible a run pass test could do it</p>
</blockquote>
<p><a href="https://github.com/rust-lang/rust/pull/83478/">https://github.com/rust-lang/rust/pull/83478/</a></p>



<a name="231840725"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Check%20a%20file%20exists%20in%20a%20UI%20test%3F/near/231840725" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Check.20a.20file.20exists.20in.20a.20UI.20test.3F.html#231840725">(Mar 25 2021 at 17:14)</a>:</h4>
<p>Hm, I'll leave a comment on the PR</p>



<a name="231849923"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Check%20a%20file%20exists%20in%20a%20UI%20test%3F/near/231849923" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Check.20a.20file.20exists.20in.20a.20UI.20test.3F.html#231849923">(Mar 25 2021 at 18:11)</a>:</h4>
<p>boy, you picked a hell of a can of worms to decide to review <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>